package kr.hkit.summary_java.std.dto;

public class Student {
	private int stdNum;
	private String stdName;
	private int kor;
	private int eng;
	private int math;
	private int sum;
	private double avg;
	public Student() {
		super();
	}
	public Student(int stdNum, String stdName, int kor, int eng, int math) {
		super();
		this.stdNum = stdNum;
		this.stdName = stdName;
		this.kor = kor;
		this.eng = eng;
		this.math = math;
	}
	public Student(int stdNum, String stdName) {
		super();
		this.stdNum = stdNum;
		this.stdName = stdName;
	}
	
	public Student(int stdNum) {
		super();
		this.stdNum = stdNum;
	}
	public int getStdNum() {
		return stdNum;
	}
	public void setStdNum(int stdNum) {
		this.stdNum = stdNum;
	}
	public String getStdName() {
		return stdName;
	}
	public void setStdName(String stdName) {
		this.stdName = stdName;
	}
	public int getKor() {
		return kor;
	}
	public void setKor(int kor) {
		this.kor = kor;
	}
	public int getEng() {
		return eng;
	}
	public void setEng(int eng) {
		this.eng = eng;
	}
	public int getMath() {
		return math;
	}
	public void setMath(int math) {
		this.math = math;
	}
	public int getSum() {
		return sum;
	}
	public void setSum(int sum) {
		this.sum = sum;
	}
	public double getAvg() {
		return avg;
	}
	public void setAvg(double avg) {
		this.avg = avg;
	}
	@Override
	public String toString() {
		return String
				.format("Student [stdNum=%s, stdName=%s, kor=%s, eng=%s, math=%s, sum=%s, avg=%s]",
						stdNum, stdName, kor, eng, math, sum, avg);
	}
	
	
	
}
